From ffb28e4e39913ea91ace644a1fea6282ddc5e23a Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 1 Oct 2002 18:27:01 +0000 Subject: [PATCH] Fix braino in cleansing functions. --- gpsbabel/magproto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpsbabel/magproto.c b/gpsbabel/magproto.c index 35961145b..60bd44ac4 100644 --- a/gpsbabel/magproto.c +++ b/gpsbabel/magproto.c @@ -157,7 +157,7 @@ m315_cleanse(char *istring) static char m315_valid_chars[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789"; for (o=rstring,i=istring; *i; i++) { - if (strchr(m315_valid_chars, *o)) { + if (strchr(m315_valid_chars, *i)) { *o++ = toupper(*i); } } @@ -178,8 +178,8 @@ m330_cleanse(char *istring) char *o, *i; for (o=rstring,i=istring; *i;i++) { - if (strchr(m330_valid_chars, *o)) { - *o++ = (*i); + if (strchr(m330_valid_chars, *i)) { + *o++ = *i; } } *o = 0; -- 2.30.2